package config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @EnableAspectJAutoProxy
 * 作用：
 *      开启spring的aop注解的支持，同我们之前在bean。xml中
 *      <aop:aspectj-autoproxy></aop:aspectj-autoproxy>
 *      的配置
 */
@Configuration
@ComponentScan(basePackages = {"service.*", "aspect"})
@EnableAspectJAutoProxy
public class SpringConfiguration {
}
